package com.sanxiau.dormitory.yang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Ex_dor {
    private int id;
    private Date date;
    private Date approval_date;
    private String stu_id;
    private String stu_name;
    private String stu_tel;
    private String old_hou_id;
    private String old_dor_id;
    private String old_bed_id;
    private String new_hou_id;
    private String new_dor_id;
    private String new_bed_id;
    private String stu_study;
    private String stu_class;
    private String adv_id;
    private String stu_cname;
    private String cause;
    private String stu_idea;
    private String dor_idea;
    private String ins_idea;
    private String result;

    public Ex_dor() {
    }

    public Ex_dor(int id, Date date, Date approval_date, String stu_id, String stu_name, String stu_tel, String old_hou_id, String old_dor_id, String old_bed_id, String new_hou_id, String new_dor_id, String new_bed_id, String stu_study, String stu_class, String adv_id, String stu_cname, String cause, String stu_idea, String dor_idea, String ins_idea, String result) {
        this.id = id;
        this.date = date;
        this.approval_date = approval_date;
        this.stu_id = stu_id;
        this.stu_name = stu_name;
        this.stu_tel = stu_tel;
        this.old_hou_id = old_hou_id;
        this.old_dor_id = old_dor_id;
        this.old_bed_id = old_bed_id;
        this.new_hou_id = new_hou_id;
        this.new_dor_id = new_dor_id;
        this.new_bed_id = new_bed_id;
        this.stu_study = stu_study;
        this.stu_class = stu_class;
        this.adv_id = adv_id;
        this.stu_cname = stu_cname;
        this.cause = cause;
        this.stu_idea = stu_idea;
        this.dor_idea = dor_idea;
        this.ins_idea = ins_idea;
        this.result = result;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getDate() {
        return date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setDate(Date date) {
        this.date = date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getApproval_date() {
        return approval_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setApproval_date(Date approval_date) {
        this.approval_date = approval_date;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }

    public String getStu_name() {
        return stu_name;
    }

    public void setStu_name(String stu_name) {
        this.stu_name = stu_name;
    }

    public String getStu_tel() {
        return stu_tel;
    }

    public void setStu_tel(String stu_tel) {
        this.stu_tel = stu_tel;
    }

    public String getOld_hou_id() {
        return old_hou_id;
    }

    public void setOld_hou_id(String old_hou_id) {
        this.old_hou_id = old_hou_id;
    }

    public String getOld_dor_id() {
        return old_dor_id;
    }

    public void setOld_dor_id(String old_dor_id) {
        this.old_dor_id = old_dor_id;
    }

    public String getNew_hou_id() {
        return new_hou_id;
    }

    public void setNew_hou_id(String new_hou_id) {
        this.new_hou_id = new_hou_id;
    }

    public String getNew_dor_id() {
        return new_dor_id;
    }

    public void setNew_dor_id(String new_dor_id) {
        this.new_dor_id = new_dor_id;
    }

    public String getStu_study() {
        return stu_study;
    }

    public void setStu_study(String stu_study) {
        this.stu_study = stu_study;
    }

    public String getStu_class() {
        return stu_class;
    }

    public void setStu_class(String stu_class) {
        this.stu_class = stu_class;
    }

    public String getAdv_id() {
        return adv_id;
    }

    public void setAdv_id(String adv_id) {
        this.adv_id = adv_id;
    }

    public String getStu_cname() {
        return stu_cname;
    }

    public void setStu_cname(String stu_cname) {
        this.stu_cname = stu_cname;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getStu_idea() {
        return stu_idea;
    }

    public void setStu_idea(String stu_idea) {
        this.stu_idea = stu_idea;
    }

    public String getDor_idea() {
        return dor_idea;
    }

    public void setDor_idea(String dor_idea) {
        this.dor_idea = dor_idea;
    }

    public String getIns_idea() {
        return ins_idea;
    }

    public void setIns_idea(String ins_idea) {
        this.ins_idea = ins_idea;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getOld_bed_id() {
        return old_bed_id;
    }

    public void setOld_bed_id(String old_bed_id) {
        this.old_bed_id = old_bed_id;
    }

    public String getNew_bed_id() {
        return new_bed_id;
    }

    public void setNew_bed_id(String new_bed_id) {
        this.new_bed_id = new_bed_id;
    }

    @Override
    public String toString() {
        return "Ex_dor{" +
                "id=" + id +
                ", date=" + date +
                ", approval_date=" + approval_date +
                ", stu_id='" + stu_id + '\'' +
                ", stu_name='" + stu_name + '\'' +
                ", stu_tel='" + stu_tel + '\'' +
                ", old_hou_id='" + old_hou_id + '\'' +
                ", old_dor_id='" + old_dor_id + '\'' +
                ", old_bed_id='" + old_bed_id + '\'' +
                ", new_hou_id='" + new_hou_id + '\'' +
                ", new_dor_id='" + new_dor_id + '\'' +
                ", new_bed_id='" + new_bed_id + '\'' +
                ", stu_study='" + stu_study + '\'' +
                ", stu_class='" + stu_class + '\'' +
                ", adv_id='" + adv_id + '\'' +
                ", stu_cname='" + stu_cname + '\'' +
                ", cause='" + cause + '\'' +
                ", stu_idea='" + stu_idea + '\'' +
                ", dor_idea='" + dor_idea + '\'' +
                ", ins_idea='" + ins_idea + '\'' +
                ", result='" + result + '\'' +
                '}';
    }
}
